package com.itheima.mytext05;

public class Demo01 {
    public static void main(String[] args) {

        MyRun mr=new MyRun();
        Thread t1 = new Thread(mr, "tanke");
        Thread t2 = new Thread(mr, "飞机");

        //设置优先级
        t1.setPriority(1);
        t2.setPriority(10);
        t1.start();
        t2.start();

    }
}
